package ningbo.day05.array;

import java.util.Arrays;
import java.util.Random;

/**
 * @Author 宁铂
 * @Date 2021/7/18 12:21
 * @Version 1.0
 */
public class TestArraysSort {
    /** sort(数组名)-直接对传入的乱序数组进行排序 */
    public static void main(String[] args) {
        TestSort();
    }

    private static void TestSort() {
        Random random = new Random(47);

        int[] a = new int[10];

        for (int i = 0; i <= a.length-1; i++){
            a[i] = random.nextInt(100);
        }
        Arrays.sort(a);
        System.out.println(Arrays.toString(a));
    }
}
